//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using System;
using System.Web.UI;

using Mindscape.BackgroundMotion.Core.Search;
using Mindscape.BackgroundMotion.Model;

namespace Mindscape.BackgroundMotion.Website
{
  /// <summary>
  /// A helper page within the system that allows admin functions to be performed
  /// </summary>
  public partial class Admin : Page
  {
    /// <summary>
    /// Rebuilds the Lucene search index
    /// </summary>
    protected void RebuildIndex_Click(object sender, EventArgs e)
    {
      SearchEngine<Contribution>.RebuildIndex();
    }
  }
}